/*
 * @Author: zhang00001 774004514@qq.com
 * @Date: 2024-06-14 14:20:45
 * @LastEditors: zhang00001 774004514@qq.com
 * @LastEditTime: 2024-08-02 17:19:18
 * @FilePath: \vue-admin\src\router\routes.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Layout from '@/layout/index.vue'
import HomeGroup from './group/home.js'
// import ComGroup from './group/com.js'
// import CellGroup from './group/cell.js'
import ActiveGroup from './group/active.js'
import NewsGroup from './group/news.js'
// import PluginGroup from './group/plugin.js'
// import CaseGroup from './group/case.js'
// import ListGroup from './group/list.js'
import ExceptionGroup from './group/exception.js'
// import ChartGroup from './group/chart.js'
// import PrintGroup from './group/print.js'
import UserGroup from './group/user.js'
import CoupoGroup from './group/coupon.js'
import SettingGroup from './group/setting.js'
import IntegralGroup from './group/integral.js'
import luckDraw from './group/luckDraw.js'
import product from "./group/product.js"
import msg from "./group/msg.js"
import feedback from "./group/feedback.js"
/**
 * meta: { icon, hideInMenu, title }
 *
 * TIP path必须写完整的路径，要做跳转匹配， path必填项-要匹配路由
 */
export const BASE_ROUTE = [{
        path: '/login',
        name: 'Login',
        component: () =>
            import ('@/pages/login/index.vue'),
        meta: {
            title: '登录'
        }
    },
    {
        path: '/',
        redirect: '/home',
        meta: {
            title: '首页'
        },
    },
    // ...CellGroup,

    ...ExceptionGroup,
    // {
    //     path: '/:path(.*)*',
    //     name: '404-page',
    //     component: Layout,
    //     meta: {
    //         title: '404页面找不到'
    //     },
    //     children: [{
    //         path: '/:path(.*)*',
    //         name: '404-page',
    //         component: () =>
    //             import ('@/pages/exception/404-page.vue'),
    //         meta: {
    //             title: '404页面找不到'
    //         }
    //     }]
    // }
]

export const DYNAMIC_ROUTE = [
    // ...ComGroup,
    // ...PluginGroup,
    // ...CaseGroup,
    // ...ChartGroup,
    ...HomeGroup,

    ...NewsGroup,
    ...ActiveGroup,
    ...UserGroup,
    ...IntegralGroup,
    ...luckDraw,
    ...product,
    ...msg,
    ...feedback,
    // ...CoupoGroup,
    // ...ListGroup,
    // ...PrintGroup,
    ...SettingGroup
]